package main

import (
	"fmt"
	"github.com/gofiber/fiber"
	"gowork/onlineService/controller"
	"gowork/onlineService/utils"
)

func main()  {
	w := new(utils.Worker)
	for i:=1; i<=15; i++ {
		fmt.Println(w.GetId())
	}

	app := fiber.New()

	osc := new(controller.OnlineServiceController)
	app.Post("/fillQuestionnaire", osc.FillQuestionnaire)
	app.Post("/query", osc.Query)
	app.Post("/externalCallQuery", osc.ExternalCallQuery)

	app.Listen(9842)
}